Skip to content

Conversation

@agrognetti
Copy link
Contributor

@agrognetti agrognetti commented Nov 25, 2025

Upgraded Android Gradle Plugin, Gradle wrapper, and dexcount plugin versions. Migrated all modules to use compileSdk 34 and targetSdk 34, added namespace declarations, and updated build configuration to match latest Gradle and Android standards. Improved build script structure and fixed deprecation warnings for Gradle tasks.

Requirements

  • I have added test coverage for new or changed functionality
  • I have followed the repository's pull request submission guidelines
  • I have validated my changes against all supported platform versions

Related issues

Describe the solution you've provided
Upgrade gradle from 7.3.3 version to 8.5.0

Additional context
I wanted to build the project to check something, but I was asked to upgrade the gradle version to 8.x.x and I thought it was a good idea to push the change.
I haven't tested it extensively since this is out of the scope of my tickets, but it seems to work correctly. @tanderson-ld check it a bit more before approve it please.


Note

Upgrade build system to Gradle 8.5/AGP 8.3.2 and migrate all modules to compile/target SDK 34 with namespace and modern Gradle/Android DSL updates, plus test/proguard tweaks and a receiver fix for Android 13+.

  • Build system:
    • Upgrade Gradle wrapper to 8.5, Android Gradle Plugin to 8.3.2, dexcount to 4.0.0, and Nexus Publish plugin to 1.3.0.
    • Refactor root build.gradle: use base.archivesName, centralize Android config via BaseExtension, enable deprecation checks, and add test JVM --add-opens.
  • Android SDK/config:
    • Migrate all modules to compileSdk/targetSdk 34, add namespace, switch to new minSdk/compileSdk DSLs, remove buildToolsVersion.
    • Update manifests and activities (add android:exported where needed); switch to new packaging { resources { excludes } } and publishing { singleVariant("release") }.
  • Javadoc & publishing:
    • Rewrite Javadoc/sources tasks using lazy task registration; add Android boot classpath and BuildConfig generation deps; update artifact publication to new APIs.
  • Testing & dependencies:
    • Bump AndroidX test libraries and orchestrator; add ProGuard rules in example and contract-tests; exclude error_prone_annotations to avoid dexing issues.
  • Runtime:
    • On Android 13+, register connectivity BroadcastReceiver with Context.RECEIVER_NOT_EXPORTED in AndroidPlatformState.

Written by Cursor Bugbot for commit cd3320f. This will update automatically on new commits. Configure here.

Upgraded Android Gradle Plugin, Gradle wrapper, and dexcount plugin versions. Migrated all modules to use compileSdk 34 and targetSdk 34, added namespace declarations, and updated build configuration to match latest Gradle and Android standards. Improved build script structure and fixed deprecation warnings for Gradle tasks.
@agrognetti agrognetti requested a review from a team as a code owner November 25, 2025 20:49
@agrognetti agrognetti changed the title Update to Android Gradle Plugin 8.3.2 and SDK 34 chore: Update to Android Gradle Plugin 8.3.2 and SDK 34 Nov 25, 2025
Added ProGuard rules to contract-tests and example modules to suppress warnings for error-prone annotations. Improved build.gradle files to support reflection for tests and enhanced Javadoc generation with proper boot classpath handling. Cleaned up AndroidManifest.xml files by removing explicit package attributes.
…d 13+

- remove obsolete package attribute from androidTest manifest (namespace comes from Gradle)
- register connectivity broadcast receiver with RECEIVER_NOT_EXPORTED on API 33+
- bump AndroidX test/orchestrator deps to 1.5.x/1.4.2 to satisfy receiver export requirement
@tanderson-ld tanderson-ld self-requested a review December 2, 2025 17:33
@agrognetti agrognetti merged commit c447d32 into main Dec 2, 2025
6 checks passed
@agrognetti agrognetti deleted the agrognetti/upgrade-gradle-to-8 branch December 2, 2025 18:19
@agrognetti agrognetti changed the title chore: Update to Android Gradle Plugin 8.3.2 and SDK 34 chore: 011Y-835 - Update to Android Gradle Plugin 8.3.2 and SDK 34 Dec 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants